Tag

A tag that can be applied to text in a [class@Buffer].

GtkSourceTag is a subclass of [class@Gtk.TextTag] that adds properties useful for the GtkSourceView library.

If, for a certain tag, [class@Gtk.TextTag] is sufficient, it's better that you create a [class@Gtk.TextTag], not a [class@Tag].

Constructors

this
this(GtkSourceTag* gtkSourceTag, bool ownedRef)

Sets our main struct and passes it to the parent class.

this
this(string name)

Creates a GtkSourceTag.

Members

Functions

getStruct
void* getStruct()

the main Gtk struct as a void*

getTagStruct
GtkSourceTag* getTagStruct(bool transferOwnership)

Get the main Gtk struct

Static functions

getType
GType getType()

Variables

gtkSourceTag
GtkSourceTag* gtkSourceTag;

the main Gtk struct

Inherited Members

From TextTag

gtkTextTag
GtkTextTag* gtkTextTag;

the main Gtk struct

getTextTagStruct
GtkTextTag* getTextTagStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

getType
GType getType()
changed
void changed(bool sizeChanged)

Emits the [signal@Gtk.TextTagTable::tag-changed] signal on the GtkTextTagTable where the tag is included.

getPriority
int getPriority()

Get the tag priority.

setPriority
void setPriority(int priority)

Sets the priority of a GtkTextTag.

Meta